using System;

namespace WCSFContrib.Extensions.EventBroker
{
    /// <summary>
    /// Attribute for subscribing methods which want to be notified on topic events being raised.
    /// </summary>
	[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
	public class EventSubscriptionAttribute : Attribute
	{
		private string topic;

		public EventSubscriptionAttribute(string topic)
		{
			this.topic = topic;
		}

		public string Topic
		{
			get { return topic; }
		}
	}
}